home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-PPC / VC_IOCTL.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  1KB  |  44 lines

  1. #ifndef _LINUX_VC_IOCTL_H
  2. #define _LINUX_VC_IOCTL_H
  3.  
  4. struct vc_mode {
  5.     int    height;
  6.     int    width;
  7.     int    depth;
  8.     int    pitch;
  9.     int    mode;
  10.     char    name[32];
  11.     unsigned long fb_address;
  12.     unsigned long cmap_adr_address;
  13.     unsigned long cmap_data_address;
  14.     unsigned long disp_reg_address;
  15. };
  16.  
  17. #define VC_GETMODE    0x7667
  18. #define VC_SETMODE    0x7668
  19. #define VC_INQMODE    0x7669
  20.  
  21. #define VC_SETCMAP      0x766a
  22. #define VC_GETCMAP      0x766b
  23.  
  24. #define VC_POWERMODE    0x766c
  25.  
  26. /* Values for the argument to the VC_POWERMODE ioctl */
  27. #define VC_POWERMODE_INQUIRY    (-1)
  28. #define VESA_NO_BLANKING    0
  29. #define VESA_VSYNC_SUSPEND    1
  30. #define VESA_HSYNC_SUSPEND    2
  31. #define VESA_POWERDOWN        3
  32.  
  33. #ifdef __KERNEL__
  34. extern int console_getmode(struct vc_mode *);
  35. extern int console_setmode(struct vc_mode *, int);
  36. extern int console_setcmap(int, unsigned char *, unsigned char *,
  37.                unsigned char *);
  38. extern int console_powermode(int);
  39. extern struct vc_mode display_info;
  40. extern struct fb_info *console_fb_info;
  41. #endif
  42.  
  43. #endif /* _LINUX_VC_IOCTL_H */
  44.